export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// 医院
export interface Hospital {
  id: string
  isDelete: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  route: string
  bookingRule: {
    releaseTime: string
  }
}

// 医院列表
export type Content = Hospital[]

// 医院列表响应
export interface HospitalResponseData extends ResponseData {
  data: {
    content: Content
    totalElements: number
  }
}

// 地区和等级
export interface HospitalLevelAndRegion {
  id: string
  isDelete: number
  name: string
  value: string
}
export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[]

// 医院等级和地区返回
export interface HospitalLevelAndRegionResponseData extends ResponseData {
  data: HospitalLevelAndRegionArr
}

// 医院搜索框列表
export interface HospitalSearchListResponseData extends ResponseData {
  data: Content
}
